from pyriscv_operator import *

class PyRiscvRegs:
    def __init__(self,n,bw):
        self._regs = [0] * n
        self._bw = bw
        
    def __getitem__(self,a):
        if a == 0:
            return 0
        
        return self._regs[a]
    
    def __setitem__(self,a,v):
        if a > 0:
            self._regs[a] = v